import React, { useEffect, useState } from 'react';
import { ProductCard, Tag, Button } from 'react-vant';
function Lishi() {
    const [data,setData]=useState('')
    const isData=[
        
        {
            id:3,
            title:'镇国神婿',
            keyword:'历史',
            img:'https://ts1.tc.mm.bing.net/th?id=ORMS.a65401aff114c66d536387d1aeb75f73&pid=Wdp&w=268&h=140&qlt=90&c=1&rs=1&dpr=1.25&p=0'
        },
        
        {
            id:6,
            title:'电饭锅',
            keyword:'历史',
            img:'https://ts1.tc.mm.bing.net/th?id=ORMS.dd9e5147132e8c00d068a8e65c4cebad&pid=Wdp&w=268&h=140&qlt=90&c=1&rs=1&dpr=1.25&p=0'
        },
        {
            id:8,
            title:'符合退货',
            keyword:'历史',
            img:'https://ts1.tc.mm.bing.net/th?id=ORMS.a87e16a91f3702c1940ecbdd306e6334&pid=Wdp&w=612&h=304&qlt=90&c=1&rs=1&dpr=1.25&p=0'
        },
        
    ]
    useEffect(()=>{
        setData(isData)
    },[])
    return (
        <div>
            {data&&data.map((item,index)=>{
                return <ProductCard
      
      desc={item.keyword}
      title={item.title}
      thumb={item.img}
    />
            })}
        </div>
    );
}

export default Lishi;